#include "UdpClient.hpp"
#include <memory>
void Usage(const std::string& str)
{
    std::cout << "Usage:" << str << " server_ip" << " server_port" << std::endl;
}
int main(int argc,char* argv[])
{
    if(argc != 3)
    {
        Usage(argv[0]);
        exit(0);
    }
    EnableConsoleLogStrategy();//启动日志
    // UdpClient client(argv[1],(uint16_t)std::stoi(argv[2]));
    std::unique_ptr<UdpClient> client = std::make_unique<UdpClient>(argv[1],(uint16_t)std::stoi(argv[2]));
    client->Init();
    client->Start();
}